﻿using System;
using System.Data;
using System.Text;

namespace BusDiary.Entity
{
    public class DiaryCatalog
    {

        #region property
        int _ID = 0;

        public int ID
        {
            get
            {
                return _ID;
            }
            set
            {
                _ID = value;
            }
        }
        int _DayType = 0;

        public int DayType
        {
            get
            {
                return _DayType;
            }
            set
            {
                _DayType = value;
            }
        }
        string _Title = string.Empty;

        public string Title
        {
            get
            {
                return _Title;
            }
            set
            {
                _Title = value;
            }
        }
        #endregion
        public override string ToString()
        {
            StringBuilder builder = new StringBuilder();
            builder.AppendFormat(null, "ID={0}", ID);
            builder.Append("\r\n");
            builder.AppendFormat(null, "DayType={0}", DayType);
            builder.Append("\r\n");
            builder.AppendFormat(null, "Title={0}", Title);
            builder.Append("\r\n");

            return builder.ToString();
        }
    }
}
